package explorer;

import java.io.File;
import java.util.Observable;

public class PathLoader extends Observable{

	private File file;
	private String folderpath= new String();
	
	public PathLoader(File content) {
		file=content;
		
		if(content==null){
			
			file= new File("Cartella Prova");
			
			
		}else{
			
			
			folderpath=content.getAbsolutePath();
			file=new File(folderpath);
			
			
		}
	}
	
	public File[] listContents(){
		
		return file.listFiles();
		
	}
	
	
}
